
from bd_serial import *
from bd_handler import *

conf = {
        'local_id': '2020222',
        'dev_id':1,
        'local_location':[100000000, 100000000, 1000000],
        'wave_no': 0x01,
        'freq_no': 1,
        'srv_interval':15,
        'remote_id':'2020111',
        'remote_dev_id':2,
        'remote_location':[200000000, 200000000, 2000000],
        'mode': 'active'}

handler = BdHandler(conf)
bdSrv = SerSrv('COM2', 115200, handler)
print('SerSrv init ok')
bdSrv.run()